package com.kantboot.api.varcode.web.admin.controller;

import com.kantboot.api.varcode.domain.dto.ApiVarCodeSearchDTO;
import com.kantboot.api.varcode.domain.entity.ApiVarCode;
import com.kantboot.api.varcode.service.IApiVarCodeService;
import com.kantboot.util.common.result.RestResult;
import com.kantboot.util.core.controller.BaseAdminController;
import com.kantboot.util.core.param.PageParam;
import com.kantboot.util.core.result.PageResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api-varCode-web/admin/varCode")
public class ApiVarCodeControllerOfAdmin
extends BaseAdminController<ApiVarCode,Long>
{

    @Resource
    private IApiVarCodeService service;

    @RequestMapping("/getBodyData")
    public RestResult<PageResult> getBodyData(@RequestBody PageParam<ApiVarCodeSearchDTO> pageParam){
        return RestResult.success(service.getBodyData(pageParam),"getSuccess","获取成功");
    }

}
